All Questions
5 questions
3votes
2answers
86views
Optimize Working Live Search & Highlight Function
I've written a custom Live Search & Highlight function in vanilla JS. It is working and does what I expect it to. The issue is that the more items I add to the page content to search, the slower ...
2votes
0answers
83views
Javascript basic search engine recipes
I have made a search engine for recipes. Requirements for this JS Project are as follow: Create a function called searchRecipes that takes all recipes and an ...
2votes
2answers
71views
Given a sorted list of integers, find the highest count of elements between an indeterminate but fixed size range
I'm trying to optimize a function that takes a sorted list of integers and tells me what is the maximum number of elements in the list between any definite size range. To be clear, the range itself ...
7votes
1answer
8kviews
Search in a JSON structure after a key
This code is supposed to search for a specific key in a object or an array or a mix between both. Is there anything I can improve? ...
2votes
2answers
38kviews
Find index of an object with a specific value stored in an array
I am using the following code in order to retrieve the index for an object stored in a JavaScript array. Scripts works fine, but I would like your opinion regarding performance. Also would like to ...